home *** CD-ROM | disk | FTP | other *** search
- /*________________________________________________________
-
- File: PS Extension.h
-
- C header file for a printing extension.
-
- Dave Hersey
- Apple Developer Technical Support
-
- (Based on the "Extension Shell" sample.)
-
- 12/01/92 - dmh - Created.
- 4/26/93 - dmh - Updated to use recommended approach
- to global data initialization.
- 9/05/93 - dmh - Updated for b2.
- - Fixed minor problem with highlighting
- of editText panel items.
- - Switched to Exception.h assertion stuff
- for error checking.
- 9/08/93 - dmh - Modified to override
- GXPostScriptDoPageSetup.
- - Added a "PS " before the file names.
- - Changed creator type.
- 12/18/93 - dmh - Updated for b3.
- 3/22/94 - dmh - Updated for b4.
-
- (Note: labels are in the Mark menu.)
-
- __________________________________________________________*/
-
- #include <Types.h>
- #include <Errors.h>
- #include <Resources.h>
- #include <ToolUtils.h>
- #include <math routines.h>
- #include <GXExceptions.h>
- #include <graphics routines.h>
- #include <graphics toolbox.h>
- #include <Collections.h>
- #include <Messages.h>
- #include <PrintingDrivers.h>
- #include <PrintingManager.h>
- #include <PrintingMessages.h>
-
-
- #define kCreator 'GPxt' /* Our creator type. */
- #define kExtensionCollectionType kCreator /* The collection type we use. */
-
- #define r_ExtensionPanel 6000 /* The ID of our dialog panel. */
- #define kExtensionTurnedOff 0 /* We're turned on. */
- #define kExtensionTurnedOn 1 /* We're turned off. */
-
- #define kDefaultSetting kExtensionTurnedOn /* We're on by default. */
-
-
- typedef struct ExtensionCollection /* This is our collection type. */
- {
- char extTurnedOn; /* On/off panel item value. */
- char fillByte;
- } ExtensionCollection;
-
-
- // Prototypes:
-
- extern long A5Size (void); /* We need these to set up */
- extern void A5Init (void *); /* our A5 world. */
-
- OSErr InitGlobalData(void);
- OSErr NewInitialize(void);
- OSErr NewShutDown(void);
- OSErr NewPSDoPageSetup(gxFormat aFormat, long pageNum,
- gxPostScriptImageDataHdl aDataHdl);
- OSErr NewJobPrintDialog(gxDialogResult *dlogResult);
- OSErr NewHandlePanelEvent(gxPanelInfoRecord *panelInfo);
- OSErr SetUpPrintPanel(void);
- OSErr GetJobCollectionItem(void *collectItem, long *collectSize,
- OSType collectType, short collectID);
-